package com.erp4j.dynamicfield.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.JsonNode;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("orders")
public class Order {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long moduleId;
    
    // 固定字段
    private String orderNo;     // 订单编号
    private BigDecimal amount;  // 订单金额
    private String status;      // 订单状态
    private LocalDate createDate; // 创建日期
    
    // 扩展字段
    private JsonNode extFields;
    
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
